<?php
/**
 * Class Controller
 * @author: Lee Way
 * @copyright: PiuZiu
 */
abstract class Controller {
	
	/**
	 * Constructor
	 */
	function __construct() {
		$this->view = new View();
	}
	
	public function loadModel($name) {
		$path = 'models/' . $name . 'Model.php';
		
		if (file_exists($path)) {
			require $path;
			$modelName = $name . 'Model';
			$this->model = new $modelNam();
		}
	}
	
	abstract public function index();
}

?>